all: run

clean:
	rm -f *~ *.o roll test test.cpp ../../*.o test.log.* debug.log

BOOST_INCLUDE = /usr/include/boost-1_33_1/

SRC_PATH = ../../equalities
SRC_PATH1 = ../../smatrix

CXXTEST = $(HOME)/tools/cxxtest
#CCFLAGS = -I. -I.. -I../../ -I$(SRC_PATH) -I$(CXXTEST) -I$(BOOST_INCLUDE)   -fPIC -ggdb -fno-inline -Wall -DDEBUG 
CCFLAGS = -I. -I.. -I../../ -I$(SRC_PATH) -I$(SRC_PATH1) -I$(CXXTEST) -I$(BOOST_INCLUDE)   -fPIC -ggdb -fno-inline -Wall -DNDEBUG 
# -DUSE_RATIONAL
LDFLAGS = -L../..  -L /usr/local/lib/
run: test
	./test

test: test.o 
	g++ -o $@ $^ $(CCFLAGS) $(LDFLAGS)

.cpp.o:
	g++ -c -o $@ $(CCFLAGS) $<

test.cpp: eqs_suite.h
	$(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $<
